Skip to content

fix broken log when slashed_robot#2430

Closed
jerryfletcher21 wants to merge 1 commit intoRoboSats:mainfrom
jerryfletcher21:slashed-robot-log-fix
Closed

fix broken log when slashed_robot#2430
jerryfletcher21 wants to merge 1 commit intoRoboSats:mainfrom
jerryfletcher21:slashed-robot-log-fix

Conversation

@jerryfletcher21
Copy link
Copy Markdown
Contributor

slashed_robot_log was not expanded so it resulted in a literal {slashed_robot.id} ecc. and _logs in api/admin.py threw an exception here:

with_hyperlinks = objects_to_hyperlinks(obj.logs)
try:
    html_logs = format_html(
        f'<table style="width: 100%">{with_hyperlinks}</table>'
    )
except Exception as e:
    html_logs = f"An error occurred while formatting the parsed logs as HTML. Exception {e}"

Also removed a trailing parenthesis.

`slashed_robot_log` was not expanded so it resulted in a literal
`{slashed_robot.id}` ecc. and `_logs` in `api/admin.py` threw an
exception here:
```python
with_hyperlinks = objects_to_hyperlinks(obj.logs)
try:
    html_logs = format_html(
        f'<table style="width: 100%">{with_hyperlinks}</table>'
    )
except Exception as e:
    html_logs = f"An error occurred while formatting the parsed logs as HTML. Exception {e}"
```

Also removed a trailing parenthesis.
@alicecoordinator
Copy link
Copy Markdown
Contributor

hey @jerryfletcher21, I already submitted a fix for that: #2423

@jerryfletcher21
Copy link
Copy Markdown
Contributor Author

jerryfletcher21 commented Mar 8, 2026

@alicecoordinator oh sorry I missed it!
Just a small visual thing, there is a trailing parenthesis that can be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants